<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'MyJsp.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	This is my JSP page.
	<br>
	<table border="1">
	<c:if test="${empty stacktraceUidListMap}">
		查無資料
	</c:if>
		<c:forEach items="${stacktraceUidListMap}" var="entry">
			<tr>
				<td>stuckEvent</td>
				<td>
					<button  onclick='javascript:window.open("stackTracePattern.html?stacktraceUid=${entry.key}", "_blank", "scrollbars=1,resizable=1,height=500,width=1200");' title='Pop Up'>${entry.key}</button>
					
					</td>
				<td>次數</td>
				<td>${entry.value.size()}</td>
			</tr>
			<tr>
				<td>使用者帳號</td>
				<td>使用者ip</td>
				<td>日期</td>
				<td>時間</td>
			</tr>

			<c:forEach items="${entry.value}" var="vo">
				<tr>
					<td>${vo.userId}</td>
					<td>${vo.clientIp}</td>
					<td>${vo.date}</td>
					<td>${vo.time}</td>
				</tr>
			</c:forEach>
		</c:forEach>
	</table>
</body>
</html>
